
/**
 *tagfolder
 *Licensed under LGPL
 *http://code.google.com/p/tagfolder
 *chuanshenglu@gmail.com
 *xrjieyee@gmail.com
 *
 */

#include <string>
#include "utilCommon.h"
using namespace std;

class UtilFile{
private:
    FileStorage fileStorage;     
public:
    bool ExtractFile(const string& fileName, FileInfo& fileInfo);
    bool StoreFileInfo(FileInfo& fileInfo){
	return fileStorage.Store(fileInfo);
    };
    bool LoadFileInfo(const string& fileName, FileInfo& fileInfo);
    bool IsFileStored(const string& fileName);
    bool StoreFile(const string& fileName){
        FileInfo fileInfo;
        if (ExtractFile(fileName,fileInfo)){
	    StoreFileInfo(fileInfo);
            return true;
        }
        return false;        
    };
};
class FileStorage{
public:
    bool Store(FileInfo& fileInfo);       
}
class DateTime{

}
struct FileInfo{
    string fileId;
    string fileName;
    string filePath;
    DateTime lastModifyTime;
    DateTime createTime;
    string owner;
}
